import request from '@/utils/request'
const HOSP_SCHEDULE_URL = '/admin/hosp/schedule/'

export default {

  /**
   * 分页显示科室排班信息
   * @param page
   * @param limit
   * @param hoscode
   * @param depcode
   */
  getScheduleRule(page, limit, hoscode, depcode) {
    return request({
      url: HOSP_SCHEDULE_URL + `getScheduleRule/${page}/${limit}/${hoscode}/${depcode}`,
      method: 'get'
    })
  },
  /**
   * 根据医院编号 、科室编号和工作日期，查询排班详细信息
   * @param hoscode
   * @param depcode
   * @param workDate
   */
  getScheduleDetail(hoscode,depcode,workDate) {
    return request ({
      url: HOSP_SCHEDULE_URL + `getScheduleDetail/${hoscode}/${depcode}/${workDate}`,
      method: 'get'
    })
  }


}
